﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class HRDS_SOFTWAREACTION_Map : ClassMap<HRDS_SOFTWAREACTION>
    {
        public HRDS_SOFTWAREACTION_Map()
        {
            Table("HRDS_SOFTWAREACTION");
            Id(x => x.SAGUID)
                .Length(15);

            Map(x => x.SOFTWARENAME).Nullable().Length(20);
            Map(x => x.DISCRIPTIVENAME).Nullable().Length(40);
            Map(x => x.SOFTWARETYPE).Nullable();
            Map(x => x.SOFTWAREIP).Nullable().Length(15);
            Map(x => x.IPMAPPINGID).Not.Nullable().Length(20);
            Map(x => x.IPMAPPINGNAME).Not.Nullable().Length(40);
            Map(x => x.ACTIONTYPE).Nullable();
            Map(x => x.ACTIONDATE).Nullable();
            Map(x => x.REMARKS).Not.Nullable().Length(200);
            DoEditableMappings();
        }
    }
}
